$(document).ready(function() {
    $('#submit').on('click', function() {
        window.location.href = "surveyResult.html";
    })
    var $labels = $('#vote>label')
    var $radios = $('#vote>input')
    var i, j, k, l;
    for (i = 0, j = $labels.length; i < j; i++) {
        $labels[i].onclick = function() {
            if (this.className == '') {
                for (k = 0, l = $labels.length; k < l; k++) {
                    $labels[k].className = '';
                    $radios[k].checked = false;
                }
                this.className = 'checked';
                try {
                    (this.name).checked = true;
                } catch (e) {

                }
            }
        }
    };
});